<template>
    <div class="wrapper">
        <text class="login" @click="jump('/test')">login</text>
        <text class="login" @click="jump('/test')">login</text>
        <a href="http://www.baidu.com" target="_blank"><text>jump</text></a>
    </div>
</template>

<script>
    const module = weex.requireModule('modal')
    import router from '../../router/index'
    export default {
        data() {
            return {}
        },
        created() {
        },
        methods: {
            jump(path){
               router.push(path)

                module.alert({
                    message: 'you are a dog',
                    duratiion: 1
                })
            }
        }
    }
</script>

<style scoped>
.login{
    width: 300px;
    height: 80px;
    background-color: #ccc;
    line-height: 80px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 50px;
}
</style>
